\hypertarget{homework4_coan_8h}{
\section{homework4Coan.h File Reference}
\label{homework4_coan_8h}\index{homework4Coan.h@{homework4Coan.h}}
}
{\ttfamily \#include \char`\"{}logic.c\char`\"{}}\par
{\ttfamily \#include \char`\"{}ui.c\char`\"{}}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{homework4_coan_8h_a840291bc02cba5474a4cb46a9b9566fe}{main} (void)
\begin{DoxyCompactList}\small\item\em \hyperlink{main_8c}{main.c} \par
 requests weight of a parcel and outputs price to deliver parcel \end{DoxyCompactList}\item 
float \hyperlink{homework4_coan_8h_a87e2360948a59b7de7a1af6ab1ccf813}{getWeight} (void)
\begin{DoxyCompactList}\small\item\em \hyperlink{ui_8c}{ui.c} \par
 Requests the weight of the parcel from the user. \end{DoxyCompactList}\item 
float \hyperlink{homework4_coan_8h_a7e569df3db79d77b7150eb450e0decd2}{calculatePrice} (float parcelWeight)
\begin{DoxyCompactList}\small\item\em \hyperlink{logic_8c}{logic.c} \par
 Determines the price to deliver the parcel. \end{DoxyCompactList}\item 
void \hyperlink{homework4_coan_8h_adec1963e59e53b32ea4725ebec67929c}{printResponse} (float parcelWeight, float price)
\begin{DoxyCompactList}\small\item\em \hyperlink{ui_8c}{ui.c} \par
 Tells the user the price to deliver the parcel. \end{DoxyCompactList}\item 
int \hyperlink{homework4_coan_8h_a1bc95a5277e78b4abb57375fafd09934}{inquireContinuation} (void)
\begin{DoxyCompactList}\small\item\em \hyperlink{ui_8c}{ui.c} \par
 Asks the user if they want to run the program again. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{homework4_coan_8h_a7e569df3db79d77b7150eb450e0decd2}{
\index{homework4Coan.h@{homework4Coan.h}!calculatePrice@{calculatePrice}}
\index{calculatePrice@{calculatePrice}!homework4Coan.h@{homework4Coan.h}}
\subsubsection[{calculatePrice}]{\setlength{\rightskip}{0pt plus 5cm}float calculatePrice (
\begin{DoxyParamCaption}
\item[{float}]{parcelWeight}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8h_a7e569df3db79d77b7150eb450e0decd2}


\hyperlink{logic_8c}{logic.c} \par
 Determines the price to deliver the parcel. 

\begin{DoxyItemize}
\item $<$2.5 kg costs \$3.50 per kg \par
 \item 2.5-\/5 kg costs \$2.85 per kg \par
 \item $>$5 kg costs \$2.45 per kg 
\begin{DoxyParams}{Parameters}
{\em parcelWeight} & -\/ the weight of the parcel \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
price -\/ The price to deliver the parcel 
\end{DoxyReturn}
\end{DoxyItemize}
\hypertarget{homework4_coan_8h_a87e2360948a59b7de7a1af6ab1ccf813}{
\index{homework4Coan.h@{homework4Coan.h}!getWeight@{getWeight}}
\index{getWeight@{getWeight}!homework4Coan.h@{homework4Coan.h}}
\subsubsection[{getWeight}]{\setlength{\rightskip}{0pt plus 5cm}float getWeight (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8h_a87e2360948a59b7de7a1af6ab1ccf813}


\hyperlink{ui_8c}{ui.c} \par
 Requests the weight of the parcel from the user. 

\begin{DoxyReturn}{Returns}
weight -\/ The weight the user entered 
\end{DoxyReturn}
\hypertarget{homework4_coan_8h_a1bc95a5277e78b4abb57375fafd09934}{
\index{homework4Coan.h@{homework4Coan.h}!inquireContinuation@{inquireContinuation}}
\index{inquireContinuation@{inquireContinuation}!homework4Coan.h@{homework4Coan.h}}
\subsubsection[{inquireContinuation}]{\setlength{\rightskip}{0pt plus 5cm}int inquireContinuation (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8h_a1bc95a5277e78b4abb57375fafd09934}


\hyperlink{ui_8c}{ui.c} \par
 Asks the user if they want to run the program again. 

\begin{DoxyReturn}{Returns}
true if user wants to continue 
\end{DoxyReturn}
\hypertarget{homework4_coan_8h_a840291bc02cba5474a4cb46a9b9566fe}{
\index{homework4Coan.h@{homework4Coan.h}!main@{main}}
\index{main@{main}!homework4Coan.h@{homework4Coan.h}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8h_a840291bc02cba5474a4cb46a9b9566fe}


\hyperlink{main_8c}{main.c} \par
 requests weight of a parcel and outputs price to deliver parcel 

\begin{DoxyReturn}{Returns}
true for successful termination 
\end{DoxyReturn}
\hypertarget{homework4_coan_8h_adec1963e59e53b32ea4725ebec67929c}{
\index{homework4Coan.h@{homework4Coan.h}!printResponse@{printResponse}}
\index{printResponse@{printResponse}!homework4Coan.h@{homework4Coan.h}}
\subsubsection[{printResponse}]{\setlength{\rightskip}{0pt plus 5cm}void printResponse (
\begin{DoxyParamCaption}
\item[{float}]{parcelWeight, }
\item[{float}]{price}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8h_adec1963e59e53b32ea4725ebec67929c}


\hyperlink{ui_8c}{ui.c} \par
 Tells the user the price to deliver the parcel. 


\begin{DoxyParams}{Parameters}
{\em parcelWeight} & -\/ the weight of the parcel \\
\hline
{\em price} & -\/ the price to deliver the parcel \\
\hline
\end{DoxyParams}
